using Game.Core;
using Game.Main.Model;
using Game.Main.View;
using UnityEngine;

namespace Game.Component
{
	public class PopperItem : BaseItem
	{
		public enum Anim
		{
			Static = 0,
			Shake = 1
		}

		private Anim anim;

		private float animTime;

		private Vector3 originalPos;

		public override void Init(ItemArchiveData data)
		{
			base.Init(data);
		}

		protected override void LateUpdate()
		{
		}

		private void CreatePopcorn()
		{
			BaseItem baseItem = Singleton<Scene>.Instance.CreateItem(base.itemData.createIds[0], base.transform.position + new Vector3(Random.Range(-0.39f, 0.36f), Random.Range(0f, 0.18f)), 0);
			if (baseItem != null)
			{
				AttachItem(baseItem, DepthType.Back, AttachType.Place, false);
				baseItem.depthSystem.SortBaseNode();
			}
		}
	}
}
